package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.SearchArticleVo;
import com.heima.model.search.UserSearchDto;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;

public interface SearchService {

    /**
     * 文章搜索
     * @param dto
     * @return
     */
    public ResponseResult search( UserSearchDto dto) throws IOException;

    /**
     * 同步数据到Es中
     * @param vo
     */
    public void addArticleToEs(SearchArticleVo vo);


}
